home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / util4 / bxchng12.lha / BExchange12 / Install_Fran軋is < prev    next >
Text File  |  1996-01-25  |  8KB  |  350 lines

  1. ;
  2. ; $VER: Installation de BExchange v1.2 (25.1.1996)
  3. ;
  4. ;       Installer script pour BExchange.
  5. ;
  6.  
  7.         (set UserLevel.old @user-level)
  8.  
  9. ; Initialisation des messages.
  10.  
  11.         (set Language 16)
  12.  
  13.         (set #WrongKickStart "\nBExchange ne fonctionne qu'avec un KickStart >= à 2.04.")
  14.  
  15.  
  16.  
  17. ; S'assurer que l'on utilise un KickStart >= à 2.04.
  18.  
  19.         (if (< (/ (getversion) 65536) 37)
  20.           (abort #WrongKickStart)
  21.         )
  22.  
  23.  
  24. (set LangueHelp "Choisisser dans quelle langue vous voulez la documentation.")
  25.  
  26. (set IconHelp "Choisissez dans quel format vous-voulez vos icônes:\n\n- 4 couleurs:          Icônes standards\n- 8 couleurs MagicWB : Standard MagicWB\n- NewIcon :            Standard NewIcon")
  27. (set bguiHelp "La bgui.library est une library facilitant la création d'interface et offrant de plus belle interface\n\nbgui.library   (C) 1993-1995 Jan van den Baard")
  28. (set Refresh  "Mode de refresh de la fenêtre")
  29. (set Aspect   "Choix de l'epaisseur des bordures:\n\n- AutoAspect:  Respecte le ration écran\n- Thin:        Force le mode fin\n- Standard:    Comme le système")
  30. (set Frame    "Choix du look des boutons")
  31. (set WindowPos  "De quel façon la fenêtre doit s'ouvrir ?")
  32. (set NewLook    "Le mode NewLook Permet d'avoir en blanc la barre scroller de la listview")
  33. (set BufferRP   "L'utilisation d'un tampon pour le RastPort permet l'affichage de l'interface d'un bloque. Mais sous RTG cela rallenti l'affichage.\n\nSous RTG répondre NON")
  34.  
  35. ;
  36. ; Répertoire de destination
  37. ; *************************
  38. ;
  39.  
  40. (set Path.source (pathonly @icon) )
  41.  
  42. (set  Path.dest
  43.         (askdir
  44.                 (prompt "\nSélectionner ou créer un répertoire dans lequel vous voulez installer BExchange.\n")
  45.                 (help @askdir-help)
  46.                 ;(default "RAM:")
  47.                 (default "Sys:Tools/Commodities")
  48.         )
  49. )
  50.  
  51.  
  52. ; Copie de l'executable
  53. ; **********************
  54. (copyfiles
  55.         (prompt "Copie de BExchange")
  56.         (help @copyfiles-help)
  57.         (source Path.source)
  58.         (dest Path.dest)
  59.         (choices "BExchange" "BExchange.info")
  60. )
  61.  
  62.  
  63. ; Copie du catalogs Français
  64. ; **************************
  65. (set CatPath (tackon Path.dest "catalogs"))
  66. (makedir CatPath)
  67. (set CatPath (tackon Path.dest "catalogs/français"))
  68. (makedir CatPath)
  69.  
  70. (copyfiles
  71.     (prompt "Copie du catalogs de BExchange")
  72.     (source Path.source)
  73.     (dest CatPath)
  74.     (choices "catalogs/français/BExchange.catalog")
  75. )
  76.  
  77.  
  78. ; Copie de la documentation
  79. ; *************************
  80. (set Doc (askchoice
  81.             (prompt "Documentation de BExchange")
  82.             (choices "Française" "Anglaise" )
  83.             (help LangueHelp)
  84.             (default 0)
  85.  
  86.     )
  87. )
  88.  
  89.  
  90.     (if (= Doc 0)
  91.         (copyfiles
  92.             (source "BExchange_FR.guide")
  93.             (dest Path.dest)
  94.             (newname "BExchange.guide")
  95.             (infos)
  96.         )
  97.     )
  98.  
  99.     (if (= Doc 1)
  100.         (copyfiles
  101.             (source "BExchange_ENG.guide")
  102.             (dest Path.dest)
  103.             (newname "BExchange.guide")
  104.             (infos)
  105.         )
  106.     )
  107.  
  108.     ;(if (= Doc 2)
  109.     ;    (copyfiles
  110.     ;        (source "BExchange_D.guide")
  111.     ;        (dest Path.dest)
  112.     ;        (newname "BExchange.guide")
  113.     ;        (infos)
  114.     ;    )
  115.     ;)
  116.  
  117.  
  118.  
  119.  
  120.  
  121. ; On copie les icônes
  122. ; *******************
  123. (set Icon (askchoice
  124.             (prompt "Quel type d'icône voulez-vous utiliser ?")
  125.             (choices "4 couleurs" "MagicWB" "NewIcon")
  126.             (help IconHelp)
  127.     )
  128. )
  129.  
  130.     ; MagicWB ?
  131.     ; *********
  132.     (if (= Icon 1)
  133.         (
  134.         (copyfiles
  135.             (source "Icons/EXE_MagicWb.info")
  136.             (dest Path.dest)
  137.             (newname "BExchange.info")
  138.         )
  139.  
  140.         (copyfiles
  141.             (source "Icons/Guide_MagicWb.info")
  142.             (dest Path.dest)
  143.             (newname "BExchange.guide.info")
  144.         )
  145.         )
  146.     )
  147.  
  148.     ; NewIcon ?
  149.     ; *********
  150.     (if (= Icon 2)
  151.         (
  152.         (copyfiles
  153.             (source "Icons/EXE_NewIcon.info")
  154.             (dest Path.dest)
  155.             (newname "BExchange.info")
  156.         )
  157.  
  158.         (copyfiles
  159.             (source "Icons/Guide_NewIcon.info")
  160.             (dest Path.dest)
  161.             (newname "BExchange.guide.info")
  162.         )
  163.         )
  164.     )
  165.  
  166.  
  167. ; Copie de la bgui.library
  168. ; ************************
  169. (copylib
  170.     (prompt "Copie de la bgui.library")
  171.     (source "libs/bgui.library")
  172.     (dest "Libs:")
  173.     (help bguiHelp)
  174.     (confirm)
  175. )
  176.  
  177. ; Parametrage du programme
  178. ; ************************
  179.  
  180. ; On prend le chemin de destination et le nom
  181. (set DestName (tackon Path.dest "BExchange"))
  182.  
  183.  
  184. ; ***********
  185. ; * REFRESH *
  186. ; ***********
  187. (set Icon (askchoice
  188.             (prompt "Quel type de refresh vous voulez pour la fenêtre ?")
  189.             (choices "SmartRefresh" "SimpleRefresh")
  190.             (help Refresh)
  191.     )
  192. )
  193.  
  194.     (if (= Icon 0)
  195.         (tooltype
  196.             (settooltype "SIMPLEREFRESH" "NO")
  197.             (dest DestName)
  198.         )
  199.     )
  200.  
  201.     (if (= Icon 1)
  202.         (tooltype
  203.             (settooltype "SIMPLEREFRESH" "YES" )
  204.             (dest DestName)
  205.         )
  206.     )
  207.  
  208. ; **********
  209. ; * ASPECT *
  210. ; **********
  211. (Set Icon (askchoice
  212.             (prompt "Quel aspect voulez-vous pour l'interface ?")
  213.             (choices "Automatique (en fonction de l'écran)" "Fin" "Standard")
  214.             (help Aspect)
  215.         )
  216. )
  217.     (if (= Icon 0)
  218.         (tooltype
  219.             (settooltype "ASPECT" "AUTO")
  220.             (dest DestName)
  221.         )
  222.     )
  223.  
  224.     (if (= Icon 1)
  225.         (tooltype
  226.             (settooltype "ASPECT" "THIN")
  227.             (dest DestName)
  228.         )
  229.     )
  230.  
  231.     (if (= Icon 2)
  232.         (tooltype
  233.             (settooltype "ASPECT" "STANDARD")
  234.             (dest DestName)
  235.         )
  236.     )
  237.  
  238. ; *********
  239. ; * FRAME *
  240. ; *********
  241. (Set Icon (askchoice
  242.             (prompt "Quel type de 'FRAME' voulez-vous pour l'interface ?")
  243.             (choices "Normal" "XEN")
  244.             (help Frame)
  245.         )
  246. )
  247.     (if (= Icon 0)
  248.         (tooltype
  249.             (settooltype "FRAME" "STANDARD")
  250.             (dest DestName)
  251.         )
  252.     )
  253.  
  254.     (if (= Icon 1)
  255.         (tooltype
  256.             (settooltype "FRAME" "XEN")
  257.             (dest DestName)
  258.         )
  259.     )
  260.  
  261.  
  262. ; *******************
  263. ; * NEWLOOKSCROLLER *
  264. ; *******************
  265. (Set Icon (askchoice
  266.             (prompt "Utiliser le mode NewLook pour le scroller de la ListView ?")
  267.             (choices "Oui" "Non")
  268.             (default 1)
  269.             (help NewLook)
  270.         )
  271. )
  272.     (if (= Icon 0)
  273.         (tooltype
  274.             (settooltype "NEWLOOKSCROLLER" "YES")
  275.             (dest DestName)
  276.         )
  277.     )
  278.  
  279.     (if (= Icon 1)
  280.         (tooltype
  281.             (settooltype "NEWLOOKSCROLLER" "NO")
  282.             (dest DestName)
  283.         )
  284.     )
  285.  
  286.  
  287. ; ******************
  288. ; * WINDOWPOSITION *
  289. ; ******************
  290. (Set Icon (askchoice
  291.             (prompt "Où voulez-vous que l'interface s'ouvre ?")
  292.             (choices "Au centre de l'écran" "Sous la souris" "En haut à gauche")
  293.             (help WindowPos)
  294.         )
  295. )
  296.     (if (= Icon 0)
  297.         (tooltype
  298.             (settooltype "WINDOWPOSITION" "CENTERSCREEN")
  299.             (dest DestName)
  300.         )
  301.     )
  302.  
  303.     (if (= Icon 1)
  304.         (tooltype
  305.             (settooltype "WINDOWPOSITION" "CENTERMOUSE")
  306.             (dest DestName)
  307.         )
  308.     )
  309.  
  310.     (if (= Icon 2)
  311.         (tooltype
  312.             (settooltype "WINDOWPOSITION" "TOPLEFT")
  313.             (dest DestName)
  314.         )
  315.     )
  316.  
  317. ; **************
  318. ; * NoBufferRP *
  319. ; **************
  320. (Set Icon (askchoice
  321.             (prompt "Utilisation de l'option BufferRP ?")
  322.             (choices "Oui" "Non")
  323.             (default 1)
  324.             (help BufferRP)
  325.         )
  326. )
  327.     (if (= Icon 0)
  328.         (tooltype
  329.             (settooltype "NOBUFFERRP" "NO")
  330.             (dest DestName)
  331.         )
  332.     )
  333.  
  334.     (if (= Icon 1)
  335.         (tooltype
  336.             (settooltype "NOBUFFERRP" "YES")
  337.             (dest DestName)
  338.         )
  339.     )
  340.  
  341.  
  342.  
  343. (message "Regarder la documation pour toutes les options")
  344.  
  345.  
  346.  
  347. (set @default-dest Path.dest )
  348.         (exit)
  349.  
  350.